import React from 'react';
import { connect } from 'dva';
import PageContent from '../../../components/PageContent';
import TestReportTable from './TestReportTable';

@connect(({ testreport, loading }) => ({ testreport, loading: loading.models.testreport }))
class Table extends React.Component {

  render() {
    const { dispatch, loading, testreport: { testreportinfo, testreportinfoDetail, projectlist, RelatedJira } } = this.props;
    const testrepTableProps = {
      dispatch,
      loading,
      testreportinfo,
      testreportinfoDetail,
      projectlist,
      RelatedJira,

    };

    return (
      <PageContent title="测试报告管理" >
        <TestReportTable {...testrepTableProps} />
      </PageContent>
    );
  }
}

export default Table;
